import request from '@/utils/request.js'

// crm 联系人列表
export function crmContactsIndex(data) {
    return request.post({
        url: 'CrmContacts/queryPageList',
        data: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

// crm 新建联系人
export function crmContactsSave(data) {
    return request.post({
        url: 'CrmContacts/addOrUpdate',
        data: data,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

// crm 详情
export function crmContactsRead(data) {
  return request.post({
    url: 'CrmContacts/queryById',
    data: data
  })
}